home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXSLTProcessor.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  10KB  |  248 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXSLTProcessor.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXSLTProcessor_h__
  6. #define __gen_nsIXSLTProcessor_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_domstubs_h__
  14. #include "domstubs.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIVariant; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsIXSLTProcessor */
  25. #define NS_IXSLTPROCESSOR_IID_STR "4a91aeb3-4100-43ee-a21e-9866268757c5"
  26.  
  27. #define NS_IXSLTPROCESSOR_IID \
  28.   {0x4a91aeb3, 0x4100, 0x43ee, \
  29.     { 0xa2, 0x1e, 0x98, 0x66, 0x26, 0x87, 0x57, 0xc5 }}
  30.  
  31. class NS_NO_VTABLE nsIXSLTProcessor : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXSLTPROCESSOR_IID)
  35.  
  36.   /**
  37.      * Import the stylesheet into this XSLTProcessor for transformations.
  38.      *
  39.      * @param style The root-node of a XSLT stylesheet. This can be either
  40.      *              a document node or an element node. If a document node
  41.      *              then the document can contain either a XSLT stylesheet
  42.      *              or a LRE stylesheet.
  43.      *              If the argument is an element node it must be the
  44.      *              xsl:stylesheet (or xsl:transform) element of an XSLT
  45.      *              stylesheet.
  46.      *
  47.      * @exception nsIXSLTException
  48.      */
  49.   /* void importStylesheet (in nsIDOMNode style); */
  50.   NS_IMETHOD ImportStylesheet(nsIDOMNode *style) = 0;
  51.  
  52.   /**
  53.      * Transforms the node source applying the stylesheet given by
  54.      * the importStylesheet() function. The owner document of the output node
  55.      * owns the returned document fragment.
  56.      *
  57.      * @param source The node to be transformed
  58.      * @param output This document is used to generate the output
  59.      * @return DocumentFragment The result of the transformation
  60.      *
  61.      * @exception nsIXSLTException
  62.      */
  63.   /* nsIDOMDocumentFragment transformToFragment (in nsIDOMNode source, in nsIDOMDocument output); */
  64.   NS_IMETHOD TransformToFragment(nsIDOMNode *source, nsIDOMDocument *output, nsIDOMDocumentFragment **_retval) = 0;
  65.  
  66.   /**
  67.      * Transforms the node source applying the stylesheet given by the
  68.      * importStylesheet() function.
  69.      *
  70.      * @param source The node to be transformed
  71.      * @return Document The result of the transformation
  72.      *
  73.      * @exception nsIXSLTException
  74.      */
  75.   /* nsIDOMDocument transformToDocument (in nsIDOMNode source); */
  76.   NS_IMETHOD TransformToDocument(nsIDOMNode *source, nsIDOMDocument **_retval) = 0;
  77.  
  78.   /**
  79.      * Sets a parameter to be used in subsequent transformations with this
  80.      * nsIXSLTProcessor. If the parameter doesn't exist in the stylesheet the
  81.      * parameter will be ignored.
  82.      *
  83.      * @param namespaceURI The namespaceURI of the XSLT parameter
  84.      * @param localName    The local name of the XSLT parameter
  85.      * @param value        The new value of the XSLT parameter
  86.      *
  87.      * @exception NS_ERROR_ILLEGAL_VALUE The datatype of value is
  88.      *                                   not supported
  89.      */
  90.   /* void setParameter (in DOMString namespaceURI, in DOMString localName, in nsIVariant value); */
  91.   NS_IMETHOD SetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant *value) = 0;
  92.  
  93.   /**
  94.      * Gets a parameter if previously set by setParameter. Returns null
  95.      * otherwise.
  96.      *
  97.      * @param namespaceURI The namespaceURI of the XSLT parameter
  98.      * @param localName    The local name of the XSLT parameter
  99.      * @return nsIVariant  The value of the XSLT parameter
  100.      */
  101.   /* nsIVariant getParameter (in DOMString namespaceURI, in DOMString localName); */
  102.   NS_IMETHOD GetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant **_retval) = 0;
  103.  
  104.   /**
  105.      * Removes a parameter, if set. This will make the processor use the
  106.      * default-value for the parameter as specified in the stylesheet.
  107.      *
  108.      * @param namespaceURI The namespaceURI of the XSLT parameter
  109.      * @param localName    The local name of the XSLT parameter
  110.      */
  111.   /* void removeParameter (in DOMString namespaceURI, in DOMString localName); */
  112.   NS_IMETHOD RemoveParameter(const nsAString & namespaceURI, const nsAString & localName) = 0;
  113.  
  114.   /**
  115.      * Removes all set parameters from this nsIXSLTProcessor. This will make
  116.      * the processor use the default-value for all parameters as specified in
  117.      * the stylesheet.
  118.      */
  119.   /* void clearParameters (); */
  120.   NS_IMETHOD ClearParameters(void) = 0;
  121.  
  122.   /**
  123.      * Remove all parameters and stylesheets from this nsIXSLTProcessor.
  124.      */
  125.   /* void reset (); */
  126.   NS_IMETHOD Reset(void) = 0;
  127.  
  128. };
  129.  
  130. /* Use this macro when declaring classes that implement this interface. */
  131. #define NS_DECL_NSIXSLTPROCESSOR \
  132.   NS_IMETHOD ImportStylesheet(nsIDOMNode *style); \
  133.   NS_IMETHOD TransformToFragment(nsIDOMNode *source, nsIDOMDocument *output, nsIDOMDocumentFragment **_retval); \
  134.   NS_IMETHOD TransformToDocument(nsIDOMNode *source, nsIDOMDocument **_retval); \
  135.   NS_IMETHOD SetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant *value); \
  136.   NS_IMETHOD GetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant **_retval); \
  137.   NS_IMETHOD RemoveParameter(const nsAString & namespaceURI, const nsAString & localName); \
  138.   NS_IMETHOD ClearParameters(void); \
  139.   NS_IMETHOD Reset(void); 
  140.  
  141. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  142. #define NS_FORWARD_NSIXSLTPROCESSOR(_to) \
  143.   NS_IMETHOD ImportStylesheet(nsIDOMNode *style) { return _to ImportStylesheet(style); } \
  144.   NS_IMETHOD TransformToFragment(nsIDOMNode *source, nsIDOMDocument *output, nsIDOMDocumentFragment **_retval) { return _to TransformToFragment(source, output, _retval); } \
  145.   NS_IMETHOD TransformToDocument(nsIDOMNode *source, nsIDOMDocument **_retval) { return _to TransformToDocument(source, _retval); } \
  146.   NS_IMETHOD SetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant *value) { return _to SetParameter(namespaceURI, localName, value); } \
  147.   NS_IMETHOD GetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant **_retval) { return _to GetParameter(namespaceURI, localName, _retval); } \
  148.   NS_IMETHOD RemoveParameter(const nsAString & namespaceURI, const nsAString & localName) { return _to RemoveParameter(namespaceURI, localName); } \
  149.   NS_IMETHOD ClearParameters(void) { return _to ClearParameters(); } \
  150.   NS_IMETHOD Reset(void) { return _to Reset(); } 
  151.  
  152. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  153. #define NS_FORWARD_SAFE_NSIXSLTPROCESSOR(_to) \
  154.   NS_IMETHOD ImportStylesheet(nsIDOMNode *style) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportStylesheet(style); } \
  155.   NS_IMETHOD TransformToFragment(nsIDOMNode *source, nsIDOMDocument *output, nsIDOMDocumentFragment **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->TransformToFragment(source, output, _retval); } \
  156.   NS_IMETHOD TransformToDocument(nsIDOMNode *source, nsIDOMDocument **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->TransformToDocument(source, _retval); } \
  157.   NS_IMETHOD SetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParameter(namespaceURI, localName, value); } \
  158.   NS_IMETHOD GetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameter(namespaceURI, localName, _retval); } \
  159.   NS_IMETHOD RemoveParameter(const nsAString & namespaceURI, const nsAString & localName) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveParameter(namespaceURI, localName); } \
  160.   NS_IMETHOD ClearParameters(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearParameters(); } \
  161.   NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } 
  162.  
  163. #if 0
  164. /* Use the code below as a template for the implementation class for this interface. */
  165.  
  166. /* Header file */
  167. class nsXSLTProcessor : public nsIXSLTProcessor
  168. {
  169. public:
  170.   NS_DECL_ISUPPORTS
  171.   NS_DECL_NSIXSLTPROCESSOR
  172.  
  173.   nsXSLTProcessor();
  174.  
  175. private:
  176.   ~nsXSLTProcessor();
  177.  
  178. protected:
  179.   /* additional members */
  180. };
  181.  
  182. /* Implementation file */
  183. NS_IMPL_ISUPPORTS1(nsXSLTProcessor, nsIXSLTProcessor)
  184.  
  185. nsXSLTProcessor::nsXSLTProcessor()
  186. {
  187.   /* member initializers and constructor code */
  188. }
  189.  
  190. nsXSLTProcessor::~nsXSLTProcessor()
  191. {
  192.   /* destructor code */
  193. }
  194.  
  195. /* void importStylesheet (in nsIDOMNode style); */
  196. NS_IMETHODIMP nsXSLTProcessor::ImportStylesheet(nsIDOMNode *style)
  197. {
  198.     return NS_ERROR_NOT_IMPLEMENTED;
  199. }
  200.  
  201. /* nsIDOMDocumentFragment transformToFragment (in nsIDOMNode source, in nsIDOMDocument output); */
  202. NS_IMETHODIMP nsXSLTProcessor::TransformToFragment(nsIDOMNode *source, nsIDOMDocument *output, nsIDOMDocumentFragment **_retval)
  203. {
  204.     return NS_ERROR_NOT_IMPLEMENTED;
  205. }
  206.  
  207. /* nsIDOMDocument transformToDocument (in nsIDOMNode source); */
  208. NS_IMETHODIMP nsXSLTProcessor::TransformToDocument(nsIDOMNode *source, nsIDOMDocument **_retval)
  209. {
  210.     return NS_ERROR_NOT_IMPLEMENTED;
  211. }
  212.  
  213. /* void setParameter (in DOMString namespaceURI, in DOMString localName, in nsIVariant value); */
  214. NS_IMETHODIMP nsXSLTProcessor::SetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant *value)
  215. {
  216.     return NS_ERROR_NOT_IMPLEMENTED;
  217. }
  218.  
  219. /* nsIVariant getParameter (in DOMString namespaceURI, in DOMString localName); */
  220. NS_IMETHODIMP nsXSLTProcessor::GetParameter(const nsAString & namespaceURI, const nsAString & localName, nsIVariant **_retval)
  221. {
  222.     return NS_ERROR_NOT_IMPLEMENTED;
  223. }
  224.  
  225. /* void removeParameter (in DOMString namespaceURI, in DOMString localName); */
  226. NS_IMETHODIMP nsXSLTProcessor::RemoveParameter(const nsAString & namespaceURI, const nsAString & localName)
  227. {
  228.     return NS_ERROR_NOT_IMPLEMENTED;
  229. }
  230.  
  231. /* void clearParameters (); */
  232. NS_IMETHODIMP nsXSLTProcessor::ClearParameters()
  233. {
  234.     return NS_ERROR_NOT_IMPLEMENTED;
  235. }
  236.  
  237. /* void reset (); */
  238. NS_IMETHODIMP nsXSLTProcessor::Reset()
  239. {
  240.     return NS_ERROR_NOT_IMPLEMENTED;
  241. }
  242.  
  243. /* End of implementation class template. */
  244. #endif
  245.  
  246.  
  247. #endif /* __gen_nsIXSLTProcessor_h__ */
  248.